package Book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:岁亮亮
 * Date:2024-01-14
 * TIME:14:53
 */
public class BookList {
   private static final int MAX=10;
   private int usesize;
   private Book[] books;
   public BookList (){
       this.books=new Book[MAX];
       this.books[0]=new Book("hong","luo","xiao",12);
       this.books[1]=new Book("sui","hong","xiao",13);
       this.books[2]=new Book("hui","hong","xiao",13);
       this.usesize =3;
   }
   public void setbooks(Book book,int usesize){
       this.books[usesize]=book ;
   }
   public Book getbooks(int usesize){
       return books[usesize];
   }

    public int getUsesize() {
        return usesize;
    }

    public void setUsesize(int usesize) {
        this.usesize = usesize;
    }
    public Book[] books(){
       return books;
    }
}
